define({ "api": [
  {
    "type": "get",
    "url": "/article/:id",
    "title": "文章详情",
    "name": "articleDetail",
    "group": "articleDetail",
    "description": "<p>文章详情</p>",
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   Content-Type: application/json; charset=UTF-8\n }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "articleDetail"
  },
  {
    "type": "get",
    "url": "/page/:id",
    "title": "文章分页列表",
    "name": "articlePage",
    "group": "articlePage",
    "description": "<p>文章分页列表</p>",
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   Content-Type: application/json; charset=UTF-8\n }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "articlePage"
  },
  {
    "type": "post",
    "url": "/article",
    "title": "文章发表",
    "name": "article",
    "group": "article",
    "description": "<p>文章发表</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "content",
            "description": "<p>文章内容</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "tips",
            "description": "<p>文章类型</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "title",
            "description": "<p>文章标题</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   Content-Type: application/json; charset=UTF-8\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n    \"msg\":\"发表成功\",\n    \"status\":1\n  }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "article"
  },
  {
    "type": "post",
    "url": "/comment",
    "title": "发表评论",
    "name": "comment",
    "group": "comment",
    "description": "<p>发表评论</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "article",
            "description": "<p>文章id</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "content",
            "description": "<p>评论内容</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   Content-Type: application/json; charset=UTF-8\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n    \"status\":1,\n    \"msg\":\"评论成功\"\n  }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "comment"
  },
  {
    "type": "get",
    "url": "/user/info",
    "title": "用户信息",
    "name": "info",
    "group": "info",
    "description": "<p>用户信息</p>",
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   Content-Type: application/json; charset=UTF-8\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n    \"status\":\"success\",\n    \"data\":\n      {\n        \"username\":\"admin\",\n        \"uid\":\"5c531dd57b6654308b7a501e\",\n        \"role\":\"666\",\n        \"avatar\":\"/avatar/default.jpg\"\n      }\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "info"
  },
  {
    "type": "post",
    "url": "/user/login",
    "title": "登陆",
    "name": "login",
    "group": "login",
    "description": "<p>登陆用户</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   Content-Type: application/json; charset=UTF-8\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n    \"status\":\"success\",\n    \"data\":\"登陆成功\"\n  }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "login"
  },
  {
    "type": "get",
    "url": "/user/logout",
    "title": "登出",
    "name": "logout",
    "group": "logout",
    "description": "<p>用户登出</p>",
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "logout"
  },
  {
    "type": "post",
    "url": "/user/reg",
    "title": "注册",
    "name": "reg",
    "group": "reg",
    "description": "<p>注册用户</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "params",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   Content-Type: application/json; charset=UTF-8\n }",
          "type": "json"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "成功",
          "content": "{\n    password: \"1\"，\n    username:\"aaa\"\n  }\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "reg"
  },
  {
    "type": "post",
    "url": "/upload",
    "title": "头像上传",
    "name": "upload",
    "group": "upload",
    "description": "<p>头像上传</p>",
    "parameter": {
      "fields": {
        "params": [
          {
            "group": "params",
            "type": "FormData",
            "optional": false,
            "field": "file",
            "description": "<p>file对象</p>"
          }
        ]
      }
    },
    "header": {
      "examples": [
        {
          "title": "Header:",
          "content": "{\n   Content-Type: form\n }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routers/router.js",
    "groupTitle": "upload"
  }
] });
